package part2;

public class Main {
    public static void main(String[] args) {
        WebsiteFactory factory = new WebsiteFactory();

        Website website = factory.getWebsite("微信");
        website.use(new User("A"));
        System.out.println("工厂大小：" + factory.size());

        Website website1 = factory.getWebsite("浏览器");
        website1.use(new User("B"));
        System.out.println("工厂大小：" + factory.size());

        Website website2 = factory.getWebsite("浏览器");
        website2.use(new User("C"));
        System.out.println("工厂大小：" + factory.size());
    }
}
